<template>
       <tit title="详情"></tit>
     <lbt :images="lb" width="100%"  height="200px"></lbt>
    <div v-html="xq.goods_introduce">

    </div>

    <van-action-bar>
        <van-action-bar-icon icon="chat-o" text="客服" color="#ee0a24" />
        <van-action-bar-icon icon="cart-o" text="购物车" badge="5"/>
        <van-action-bar-icon icon="star" text="已收藏" color="#ff5000" />
        <van-action-bar-button type="warning" text="加入购物车" />
        <van-action-bar-button type="danger" text="立即购买" />
    </van-action-bar>
</template>

<script setup>
import { detailApi } from '@/api/api';
import { ref } from 'vue';
let xq = ref([]);
import { useRoute } from 'vue-router';
let route = useRoute()
detailApi(route.params.goods_id).then(res => {
    console.log('详情', res);
    xq.value = res.data.message;
})

const lb = [
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
];
import lbt from '@/components/lbt.vue';
import tit from '@/components/tit.vue';
</script>

<style lang="scss" scoped></style>